#!/bin/sh

i18ndude rebuild-pot --pot iqpp.plone.commenting.pot --create iqpp.plone.commenting --merge extra.pot ..
i18ndude sync --pot iqpp.plone.commenting.pot de/LC_MESSAGES/iqpp.plone.commenting.po

for lang in $(find ../locales -mindepth 1 -maxdepth 1 -type d); do
    if test -d $lang/LC_MESSAGES; then
        msgfmt -o $lang/LC_MESSAGES/iqpp.plone.commenting.mo $lang/LC_MESSAGES/iqpp.plone.commenting.po
    fi
done